#include "Vector2i.h"

CVector2i::CVector2i():m_x(0), m_y(0){}

CVector2i::CVector2i(int x, int y):m_x(x), m_y(y){}
	
CVector2i::~CVector2i(){}

CVector2i CVector2i::operator+ (const CVector2i& v)const
{
	CVector2i result;
	result.m_x = m_x + v.getX();
	result.m_y = m_y + v.getY();
	return result;

}

CVector2i CVector2i::operator- (CVector2i& v)
{
	CVector2i result;
	result.m_x = m_x - v.getX();
	result.m_y = m_y - v.getY();
	return result;
}

bool CVector2i::operator != (const CVector2i& v)const
{
	if(m_x != v.m_x || m_y != v.m_y)
		return true;

	return false;
}

int CVector2i::getX(void)const
{
	return m_x;
}

int CVector2i::getY(void)const
{
	return m_y;
}

void CVector2i::setX(int x)
{
	m_x=x;
}

void CVector2i::setY(int y)
{
	m_y=y;
}
